<%@ include file="base.jsp" %>
<%@ page isELIgnored ="true" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html>
<head>
<title>Insert title here</title>
<script type="text/javascript">
	$(document).ready(function() {
		$('#ff').form({  
		    url:"../Signin",  
		    onSubmit: function(){  
		        // do some check  
		        // return false to prevent submit;  
		    },  
		    success:function(data){  
		        alert(data);  
		    }  
		});  
		$("#vv").validatebox({
			required:true,
			validType:'email'
		});
		// submit the form  
		//$('#ff').submit(); 
	});
 
</script>
</head>
<body>
 	<form action="" id="ff" method="post">
 		<div>
 			<label for="name">Name:</label>
	 		<input class="easyui-validatebox" type="text" name="name" data-options="required:true" />  
 		</div>
 		<div>
 			<label for="email">Email:</label>
 			<input class="easyui-validatebox" type="text" name="email" data-options="validType:'email'"/>
 			<input type="submit" value="submit">
  		</div>
 	</form>
 	<input id="vv" /> 
</body>
</html>